Skip to content

fix: prefix staged tarball path so npm does not treat it as git - #482

Merged
jaredwray merged 1 commit into
mainfrom
cursor/fix-npm-stage-publish-path-db04
Aug 17, 2026
Merged

fix: prefix staged tarball path so npm does not treat it as git#482
jaredwray merged 1 commit into
mainfrom
cursor/fix-npm-stage-publish-path-db04

Conversation

@jaredwray

@jaredwray jaredwray commented Aug 17, 2026

Copy link
Copy Markdown
Owner

Please check if the PR fulfills these requirements

  • Followed the Contributing and Code of Conduct guidelines.
  • Tests for the changes have been added (for bug fixes/features) with 100% code coverage.

What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)
Bug fix for the release workflow.

Why this change is needed?
The v3.0.0 release failed at the Stage publish step (run 32056846194) with:

npm error command git --no-replace-objects ls-remote ssh://git@github.com/packed/docula-3.0.0.tgz.git
npm error git@github.com: Permission denied (publickey).

This is not an OIDC / trusted-publisher problem. The trusted publisher is already configured for release.yaml with npm stage publish. npm 11+ (npm-package-arg) parses a bare dir/file.tgz argument as GitHub owner/repo shorthand, so packed/docula-3.0.0.tgz became github:packed/docula-3.0.0.tgz.

What this PR does
Prefixes the packed tarball glob with ./ so npa treats it as a local file:

npm stage publish ./packed/*.tgz --access public --provenance

Reproduced locally with the same npm 11.19.0 the workflow installs:

  • npm stage publish packed/*.tgz --dry-run → exit 128, git ls-remote ssh://git@github.com/packed/docula-repro-dummy-3.0.0.tgz.git
  • npm stage publish ./packed/*.tgz --dry-run → exit 0, Staging ... (dry-run)

pnpm test: 17 files, 866 tests passed, 100% coverage. Workflow-only change; no application source to cover with unit tests.

After merge, re-run the release workflow (or re-release) so 3.0.0 can be staged.

Open in Web Open in Cursor 

npm 11+ parses a bare packed/*.tgz argument as GitHub owner/repo
shorthand, so npm stage publish ran git ls-remote against
ssh://git@github.com/packed/docula-3.0.0.tgz.git and failed.
Prefix the glob with ./ so npa treats it as a local file.

Co-authored-by: Jared Wray <me@jaredwray.com>
@codecov

codecov Bot commented Aug 17, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (366cf08) to head (072065c).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff            @@
##              main      #482   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           18        18           
  Lines         2760      2760           
  Branches       846       837    -9     
=========================================
  Hits          2760      2760           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@jaredwray
jaredwray marked this pull request as ready for review August 17, 2026 19:02
@jaredwray
jaredwray merged commit ed1eda9 into main Aug 17, 2026
14 checks passed
@jaredwray
jaredwray deleted the cursor/fix-npm-stage-publish-path-db04 branch August 17, 2026 19:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants